/**
 * Copyright (c) Huawei Technologies Co., Ltd. 1987-2021. All rights reserved.
*/

package com.gitee.fufu669.aspect;

import com.gitee.fufu669.common.CacheKeyCommon;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**在方法上加把锁，如果没有成功lock则抛出异常。*/
@Target(ElementType.METHOD)
// 注解
@Retention(RetentionPolicy.RUNTIME)
/** @author wangfupeng */
/**
 * TODO
*/
public @interface LockWithCache {
    // 数字赋值
    int expireSeconds() default CacheKeyCommon.CACHESERVICE_REDIS_LOCK_DEFAULT_EXPIRED_SECONDS;
    /**在打印日志时会出现的提示*/
    String description() default "";
}
